package com.cy.aircompressor.main.home.systemsetting.fragment.child;

import android.os.Bundle;

import com.bumptech.glide.Glide;
import com.cy.aircompressor.config.AirConfig;
import com.cy.aircompressor.databinding.ChildDispilayInfoFragmentBinding;
import com.cy.aircompressor.entity.system.SysConfig;
import com.cy.aircompressor.main.ui.onlinemonitor.viewmodel.OnlineMonitorViewModel;
import com.net.model.base.fragment.BaseVMFragment;

public class DisplayInformationFragment extends BaseVMFragment<ChildDispilayInfoFragmentBinding, OnlineMonitorViewModel> {

    public static DisplayInformationFragment newInstance() {
        Bundle args = new Bundle();
        DisplayInformationFragment fragment = new DisplayInformationFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void dataChange() {

    }

    @Override
    protected ChildDispilayInfoFragmentBinding getViewBinding() {
        return ChildDispilayInfoFragmentBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initData() {
        SysConfig sysConfig = AirConfig.get().sysConfig;
        Glide.with(mContext)
                .load(sysConfig.getSysLogo())
                .into(mBinding.systemLogo);
        mBinding.systemName.setText(sysConfig.getSysName());
        mBinding.powerStationName.setText(AirConfig.get().userInfo.getPowerStationName());
    }

    @Override
    protected void requestNetwork() {

    }
}
